<?php

class Member extends Controller {

    function __construct() {
        parent::Controller();
    }

    function index() {
        $user = new User();
        $user->username = 'zYne-';
        $user->setPassword('password');
        $user->save();

        $userTable = Doctrine::getTable('User');
        $user = $userTable->findOneByUsername('zYne-');

        echo $user->username; // prints 'zYne-'

        $users = $userTable->retrieveAll();

        echo $users->count(); // echo '2''
        foreach ($users as $user) {
            echo $user->username;
        } 
    }
}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */